package com.hezhi.project.module.leave.domain;

import com.hezhi.common.utils.DateUtils2;
import com.hezhi.framework.web.domain.BaseEntity;
import com.hezhi.project.module.parent.domain.Parent;
import com.hezhi.project.module.student.domain.Student;
import com.hezhi.project.module.teacher.domain.Teacher;

import java.util.Date;

/**
 * 请假表 db_leave
 * 
 * @author hezhi
 * @date 2018-08-19
 */
public class Leave extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private Integer leaveId;
	/** 学生学号 */
	private String studentNumber;
	/** 家长主键 */
	private String parentNumber;
	/** 审批班主任教工号 */
	private String teacherNumber;
	/** 内容 */
	private String content;
	/** 开始时间 */
	private Date startTime;
	/** 结束时间 */
	private Date endTime;
	/** 状态 0未审批 1已审批 2驳回 */
	private String status;
	/** 创建时间 */
	private Date createTime;
	/** 审批时间 */
	private Date approvalTime;
	private String title;
	private Teacher teacher;
	private Student student;
	private Parent parent;

	/**
	 * 设置：主键
	 */
	public void setLeaveId(Integer leaveId) 
	{
		this.leaveId = leaveId;
	}
	
	/**
	 * 获取：主键
	 */
	public Integer getLeaveId() 
	{
		return leaveId;
	}
	
	/**
	 * 设置：学生学号
	 */
	public void setStudentNumber(String studentNumber) 
	{
		this.studentNumber = studentNumber;
	}
	
	/**
	 * 获取：学生学号
	 */
	public String getStudentNumber() 
	{
		return studentNumber;
	}
	
	/**
	 * 设置：家长主键
	 */
	public void setParentNumber(String parentNumber) 
	{
		this.parentNumber = parentNumber;
	}
	
	/**
	 * 获取：家长主键
	 */
	public String getParentNumber() 
	{
		return parentNumber;
	}
	
	/**
	 * 设置：审批班主任教工号
	 */
	public void setTeacherNumber(String teacherNumber) 
	{
		this.teacherNumber = teacherNumber;
	}
	
	/**
	 * 获取：审批班主任教工号
	 */
	public String getTeacherNumber() 
	{
		return teacherNumber;
	}
	
	/**
	 * 设置：内容
	 */
	public void setContent(String content) 
	{
		this.content = content;
	}
	
	/**
	 * 获取：内容
	 */
	public String getContent() 
	{
		return content;
	}
	
	/**
	 * 设置：开始时间
	 */
	public void setStartTime(String startTime) 
	{
		this.startTime = DateUtils2.parseDate(startTime);
	}
	
	/**
	 * 获取：开始时间
	 */
	public Date getStartTime() 
	{
		return startTime;
	}
	
	/**
	 * 设置：结束时间
	 */
	public void setEndTime(String endTime) 
	{
		this.endTime = DateUtils2.parseDate(endTime);
	}
	
	/**
	 * 获取：结束时间
	 */
	public Date getEndTime() 
	{
		return endTime;
	}
	
	/**
	 * 设置：状态 0未审批 1已审批
	 */
	public void setStatus(String status) 
	{
		this.status = status;
	}
	
	/**
	 * 获取：状态 0未审批 1已审批
	 */
	public String getStatus() 
	{
		return status;
	}
	
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}
	
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() 
	{
		return createTime;
	}
	
	/**
	 * 设置：审批时间
	 */
	public void setApprovalTime(Date approvalTime) 
	{
		this.approvalTime = approvalTime;
	}
	
	/**
	 * 获取：审批时间
	 */
	public Date getApprovalTime() 
	{
		return approvalTime;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public Student getStudent() {
		return student;
	}

	public Parent getParent() {
		return parent;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public void setParent(Parent parent) {
		this.parent = parent;
	}
	
}
